package com.qwz.example;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Description: 具体的订单实现
 * @Package: com.qwz.example.PersonOrder
 * @Author: Qiuwuzhi
 * @CreateDate: 2019/12/16  下午 10:39
 * @Version V1.0
 */
@Getter
@Setter
@ToString
public class PersonOrder implements OrderApi {

    private String customerName;
    private String productId;
    private int orderProductNum;

//    public int getOrderProductNum() {
//        return this.orderProductNum;
//    }
//
//    public void setOrderProductNum(int num) {
//        this.orderProductNum = num;
//
//    }


    @Override
    public OrderApi clone() {

        PersonOrder personOrder = new PersonOrder();
        personOrder.setCustomerName(this.customerName);
        personOrder.setProductId(this.productId);
        personOrder.setOrderProductNum(this.orderProductNum);
        return personOrder;
    }
}
